﻿<phone:PhoneApplicationPage
    x:Class="OnlineMovies.Views.Story"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="10,17,0,28" Orientation="Horizontal">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle" Text=""  Style="{StaticResource DetailPagePivotTitle}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
        
            <StackPanel Orientation="Vertical" Grid.Row="0">
                <StackPanel x:Name="onl" Orientation="Horizontal">
                    <TextBlock  Text="Description" Margin="15,10,0,0"></TextBlock>
                    <Image x:Name="onlinedescimg" Source="/Images/online.png" Margin="20,0,0,0" Height="48" Width="48" MouseLeftButtonDown="onlinedescimg_MouseLeftButtonDown_1"></Image>
                    <Image x:Name="edit"  Source="/Images/PlayerImages/edit.png" Margin="25,0,0,0" Stretch="Fill" Height="48" Width="48" MouseLeftButtonDown="edit_MouseLeftButtonDown_1" ></Image>
                    <TextBlock x:Name="txtlength" Visibility="Visible" Margin="100,30,0,0" HorizontalAlignment="Right" Foreground="White" FontSize="20"></TextBlock>
                </StackPanel>
                <StackPanel Orientation="Vertical">
                    <TextBox x:Name="tblkdes"  TextChanged="tblkdes_TextChanged_1"  Width="500" ScrollViewer.VerticalScrollBarVisibility="Auto" Height="180" TextWrapping="Wrap" HorizontalAlignment="Left" ></TextBox>
                    <TextBlock x:Name="txtlimit" Visibility="Collapsed" Margin="30,-5,0,0" Text="max text limit 150 characters" Foreground="Red" FontSize="20"></TextBlock>
                </StackPanel>
            </StackPanel>
          
            <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="15,20,0,0">
                <StackPanel Orientation="Vertical">
                    <TextBlock x:Name="localtblk" Text="Image From Local"></TextBlock>
                    <Image x:Name="storylocalimg"  Visibility="Visible" Stretch="Fill" Source="/Images/fromlocal.png" Height="280" Width="200" HorizontalAlignment="Left" Margin="-5,15,0,0"  MouseLeftButtonDown="storylocalimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="80,0,0,0">
                    <TextBlock x:Name="onlinetblk" Text="Image From Online" Margin="-40,0,0,0"></TextBlock>
                    <Image x:Name="storyonlineimg" Stretch="Fill"  Visibility="Visible" Source="/Images/fromonline.png" Height="280" Width="200" HorizontalAlignment="Left" Margin="-40,15,0,0" MouseLeftButtonDown="storyonlineimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
            </StackPanel>

        </Grid>
     
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>

        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">

            <shell:ApplicationBarIconButton x:Name="btnsave" IconUri="/Images/PlayerImages/save.png" Text="Save" Click="btnsave_Click_1"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>